package com.atguigu.jxc.controller;

import com.atguigu.jxc.entity.DamageList;
import com.atguigu.jxc.service.DamageListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * TODO
 *
 * @author Mr.zhao
 * @version 1.0
 * @date 2022/1/4 11:21
 */
@RestController
@RequestMapping("/damageListGoods")
public class DamageListController {

    @Autowired
    private DamageListService damageListService;

    @PostMapping("/list")
    public Map<String, Object> getList(String  sTime, String  eTime){
        return damageListService.getList(sTime,eTime);
    }

    @PostMapping("/goodsList")
    public Map<String, Object> getGoodsList(Integer damageListId){
        return damageListService.getGoodsList(damageListId);
    }


}
